package com.projectsquirrel;


import android.app.Activity;
import android.content.Intent;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;

public class mainMenu1 extends Activity {

	@Override
	/*
	 * This is the main menu of the application and it will have:
	 * new Observation button
	 * saved observations button
	 * settings icon
	 * info icon
	 * 
	 */
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.homescreen);
	    Button newObsButton = (Button) findViewById(R.id.newObservationButton);
	    Button savedObsButton = (Button) findViewById(R.id.savedObservationsButton);
	    
	    ImageButton settingsIconButton = (ImageButton) findViewById(R.id.settingnfoScreenIcon);
	    ImageButton infoIconButton = (ImageButton) findViewById(R.id.infoScreenIcon);
	    
	    
	    newObsButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(mainMenu1.this, newObservation.class);
		        startActivity(i);
			}	    	
	    });
	    settingsIconButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(mainMenu1.this, settingsMenu.class);
		        startActivity(i);
			}	    	
	    });
	    infoIconButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(mainMenu1.this, infoMenu.class);
		        startActivity(i);
			}	    	
	    });
	    savedObsButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(mainMenu1.this, savedObservations.class);
		        startActivity(i);
			}	    	
	    });
	    
	    
	}
}
//*/